CC = gcc
LD = ld
CFLAGS = -c 
LDFLAGS = 
MOD_NAME = bigint

OBJS = $(MOD_NAME).o $(MOD_NAME)test.o
BIN = $(MOD_NAME)test

.PHONY : clean build

clean :
	rm -f $(OBJS) $(BIN)

build : $(BIN)


$(BIN) : $(OBJS)
	$(CC) -o $(BIN) $(OBJS)

$(MOD_NAME).o : $(MOD_NAME).c
	$(CC) $(CFLAGS) -o $@ $<

$(MOD_NAME)test.o : $(MOD_NAME)test.c
	$(CC) $(CFLAGS) -o $@ $<
